import request from '@/utils/request'

const mudulePath = 'match/score/rule/'

export function getMatchScoreRuleList(data) {
  return request({
    url: mudulePath + 'list',
    method: 'get',
    params: data
  })
}

export function saveMatchScoreRule(data) {
  return request({
    url: mudulePath + 'save',
    method: 'get',
    params: data
  })
}
export function updateMatchScoreRule(data) {
  return request({
    url: mudulePath + 'update',
    params: data
  })
}

export function getMatchScoreRuleProjectList(data) {
  return request({
    url: mudulePath + 'ruleProjectList',
    method: 'get',
    params: data
  })
}

export function getMatchScoreRuleProjectClientList(data) {
  return request({
    url: mudulePath + 'ruleProjectListClient',
    method: 'get',
    params: data
  })
}

export function saveMatchScoreRuleProject(data) {
  return request({
    url: mudulePath + 'saveProject',
    method: 'post',
    params: data
  })
}

export function ruleScoreCalculateList(data) {
  return request({
    url: mudulePath + 'ruleScoreCalculateList',
    method: 'get',
    params: data
  })
}

export function ruleScoreBaseRateList(data) {
  return request({
    url: mudulePath + 'ruleScoreBaseRateList',
    method: 'get',
    params: data
  })
}

export function ruleScoreIntervalScore(data) {
  return request({
    url: mudulePath + 'ruleScoreIntervalScore',
    method: 'get',
    params: data
  })
}

export function saveScoreBaseRate(data) {
  return request({
    url: mudulePath + 'saveScoreBaseRate',
    method: 'post',
    params: data
  })
}

export function baseArithmeticRuleList(data) {
  return request({
    url: mudulePath + 'baseArithmeticRuleList',
    method: 'get',
    params: data
  })
}

export function matchScoreArithmeticRule(data) {
  return request({
    url: mudulePath + 'matchScoreArithmeticRule',
    method: 'get',
    params: data
  })
}

export function saveMatchScoreArithmeticRule(data) {
  return request({
    url: mudulePath + 'saveMatchScoreArithmeticRule',
    method: 'post',
    params: data
  })
}

export function baseOrderRuleList(data) {
  return request({
    url: mudulePath + 'baseOrderRuleList',
    method: 'get',
    params: data
  })
}

export function saveMatchScoreOrderRule(data) {
  return request({
    url: mudulePath + 'saveMatchScoreOrderRule',
    method: 'post',
    params: data
  })
}

export function matchScoreOrderRule(data) {
  return request({
    url: mudulePath + 'matchScoreOrderRule',
    method: 'get',
    params: data
  })
}

export function matchScoreStatusRule(data) {
  return request({
    url: mudulePath + 'matchScoreStatusRule',
    method: 'get',
    params: data
  })
}

export function matchScoreStatusRuleSaveOrUpdate(data) {
  return request({
    url: mudulePath + 'saveOrUpdate',
    method: 'get',
    params: data
  })
}

export function selectIpadList(data) {
  return request({
    url: mudulePath + 'selectIpadList',
    method: 'get',
    params: data
  })
}

export function deleteRuleById(data) {
  return request({
    url: mudulePath + 'deleteRuleById',
    method: 'get',
    params: data
  })
}
